package com.example.admin.myapplication.modul;

import com.example.admin.myapplication.BaseView;
import com.example.admin.myapplication.presenter.MainPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by admin on 2016/4/28.
 */
@Module
public class MainPresenterModule {

    private BaseView BaseView;

    public MainPresenterModule(BaseView baseView){
        this.BaseView = baseView;
    }

    @Provides
    public MainPresenter provideMainPresenter(){
        return  new MainPresenter(BaseView);
    }
}
